/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2024-09-25
 * Time: 22:11
 */
public class Demo {
    public static void people(String account,String password)throws AccentException,PasswordException{

        if(!account.equals("111112")){
            throw new AccentException("账号异常");
        }
        if(!password.equals("dddddd")){
            throw new PasswordException("密码错误");
        }
        System.out.println("登录成功");


    }
    public static void main(String[] args) throws PasswordException, AccentException {
        try{
            people("11","kk");
        }catch(AccentException e){
            e.printStackTrace();
        }catch (PasswordException e){
            e.printStackTrace();
        }

    }
}
